package top.frsf.consumer;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import top.frsf.rpc.annotations.EnableRpcClient;

/**
 * @author He Kuntao
 * @since 2025/7/2 13:52
 */
@EnableRpcClient
@SpringBootApplication
public class ConsumerApplication {

    public static void main(String[] args) throws Exception {
        ConfigurableApplicationContext context = SpringApplication.run(ConsumerApplication.class, args);

        Thread.sleep(5000);
        TestService bean = context.getBean(TestService.class);
        bean.test();
    }
}
